﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HeroAttack
{
    public class GuanYu : Hero
    {
        public string Name { get; set; }

        public GuanYu()
        {
            attack = new Tank();
            role = new Tank();
            Name = "关羽";
        }

        public override void Display()
        {
            Console.WriteLine($"名称{Name}");
            Attack();
        }
    }
}
